<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/capacite.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/capacite.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="capacite_8h_source.html">capacite.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#a77846c41c62aeee63b9b71a0821ce146">capaciteInit</a> (<a class="el" href="structCapacite.html">Capacite</a> *capacite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite n'est pas initialisée <br/>
 Postconditions : capacite est initialisée.  <a href="#a77846c41c62aeee63b9b71a0821ce146"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#aa0ee2921e4ba5cabf299f37d25fc6cd6">capaciteLibere</a> (<a class="el" href="structCapacite.html">Capacite</a> *capacite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite est initialisé <br/>
 Postconditions : capacite est libéré  <a href="#aa0ee2921e4ba5cabf299f37d25fc6cd6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#ab84db4df4685b80d8738c6cc36326ef5">ajouterCompetenceCapacite</a> (<a class="el" href="structCapacite.html">Capacite</a> *capacite, const <a class="el" href="structCompetence.html">Competence</a> *comp, const int exp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite est initialisé <br/>
 Postconditions : la compétence comp est ajoutée à capacité et l'expérience exp est ajoutée si la compétence est déjà dans capacite.  <a href="#ab84db4df4685b80d8738c6cc36326ef5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#a9d8f92fa22b3b5c577b9d2d454974215">copieCapacite</a> (const <a class="el" href="structCapacite.html">Capacite</a> *capacite1, <a class="el" href="structCapacite.html">Capacite</a> *capacite2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite1 est initialisée ; capacite2 aussi <br/>
 Postconditions : capacite2 est réinitialisée (son contenu est écrasé) et le contenu de capacite1 est copié dans capacite2.  <a href="#a9d8f92fa22b3b5c577b9d2d454974215"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#add6d638fa01c6b68e548d755dacc7c28">chercherCompetence</a> (const <a class="el" href="structCapacite.html">Capacite</a> *capacite, const int type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite est initialisé <br/>
 Postconditions : Recherche si la compétence type est dans capacite et retourne sa position s'il la trouve (-1 sinon)  <a href="#add6d638fa01c6b68e548d755dacc7c28"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structCompetence.html">Competence</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#aaf29da2c707ec7bdafd3412b664d90d1">getCompetence</a> (const <a class="el" href="structCapacite.html">Capacite</a> *capacite, const int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite est initialisé <br/>
 Postconditions : retourne la ième compétence de capacité  <a href="#aaf29da2c707ec7bdafd3412b664d90d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#aee5f559d8efb1e197090c259fe6c79f5">getCapaciteQuantite</a> (const <a class="el" href="structCapacite.html">Capacite</a> *capacite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite est initialisé <br/>
 Postconditions : retourne la quantite de capacité  <a href="#aee5f559d8efb1e197090c259fe6c79f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#aa0843b370657c22bdfa7f55654b633ea">getCapaciteNbCompetence</a> (const <a class="el" href="structCapacite.html">Capacite</a> *capacite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : capacite est initialisé <br/>
 Postconditions : retourne la quantite de capacité  <a href="#aa0843b370657c22bdfa7f55654b633ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="capacite_8c.html#a498aeecb2bfb5e49624f6fd67842ebdf">mainCapacite</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : teste les fonctions du module <a class="el" href="structCompetence.html">Competence</a>.  <a href="#a498aeecb2bfb5e49624f6fd67842ebdf"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ab84db4df4685b80d8738c6cc36326ef5"></a><!-- doxytag: member="capacite.c::ajouterCompetenceCapacite" ref="ab84db4df4685b80d8738c6cc36326ef5" args="(Capacite *capacite, const Competence *comp, const int exp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="capacite_8h.html#ab84db4df4685b80d8738c6cc36326ef5">ajouterCompetenceCapacite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structCompetence.html">Competence</a> *&#160;</td>
          <td class="paramname"><em>comp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>exp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite est initialisé <br/>
 Postconditions : la compétence comp est ajoutée à capacité et l'expérience exp est ajoutée si la compétence est déjà dans capacite. </p>

</div>
</div>
<a class="anchor" id="a77846c41c62aeee63b9b71a0821ce146"></a><!-- doxytag: member="capacite.c::capaciteInit" ref="a77846c41c62aeee63b9b71a0821ce146" args="(Capacite *capacite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="capacite_8h.html#a77846c41c62aeee63b9b71a0821ce146">capaciteInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite n'est pas initialisée <br/>
 Postconditions : capacite est initialisée. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="aa0ee2921e4ba5cabf299f37d25fc6cd6"></a><!-- doxytag: member="capacite.c::capaciteLibere" ref="aa0ee2921e4ba5cabf299f37d25fc6cd6" args="(Capacite *capacite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="capacite_8h.html#aa0ee2921e4ba5cabf299f37d25fc6cd6">capaciteLibere</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite est initialisé <br/>
 Postconditions : capacite est libéré </p>

</div>
</div>
<a class="anchor" id="add6d638fa01c6b68e548d755dacc7c28"></a><!-- doxytag: member="capacite.c::chercherCompetence" ref="add6d638fa01c6b68e548d755dacc7c28" args="(const Capacite *capacite, const int type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="capacite_8h.html#add6d638fa01c6b68e548d755dacc7c28">chercherCompetence</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite est initialisé <br/>
 Postconditions : Recherche si la compétence type est dans capacite et retourne sa position s'il la trouve (-1 sinon) </p>

</div>
</div>
<a class="anchor" id="a9d8f92fa22b3b5c577b9d2d454974215"></a><!-- doxytag: member="capacite.c::copieCapacite" ref="a9d8f92fa22b3b5c577b9d2d454974215" args="(const Capacite *capacite1, Capacite *capacite2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="capacite_8h.html#a9d8f92fa22b3b5c577b9d2d454974215">copieCapacite</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite1 est initialisée ; capacite2 aussi <br/>
 Postconditions : capacite2 est réinitialisée (son contenu est écrasé) et le contenu de capacite1 est copié dans capacite2. </p>

</div>
</div>
<a class="anchor" id="aa0843b370657c22bdfa7f55654b633ea"></a><!-- doxytag: member="capacite.c::getCapaciteNbCompetence" ref="aa0843b370657c22bdfa7f55654b633ea" args="(const Capacite *capacite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="capacite_8h.html#aa0843b370657c22bdfa7f55654b633ea">getCapaciteNbCompetence</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite est initialisé <br/>
 Postconditions : retourne la quantite de capacité </p>

</div>
</div>
<a class="anchor" id="aee5f559d8efb1e197090c259fe6c79f5"></a><!-- doxytag: member="capacite.c::getCapaciteQuantite" ref="aee5f559d8efb1e197090c259fe6c79f5" args="(const Capacite *capacite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="capacite_8h.html#aee5f559d8efb1e197090c259fe6c79f5">getCapaciteQuantite</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite est initialisé <br/>
 Postconditions : retourne la quantite de capacité </p>

</div>
</div>
<a class="anchor" id="aaf29da2c707ec7bdafd3412b664d90d1"></a><!-- doxytag: member="capacite.c::getCompetence" ref="aaf29da2c707ec7bdafd3412b664d90d1" args="(const Capacite *capacite, const int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structCompetence.html">Competence</a>* <a class="el" href="capacite_8h.html#aaf29da2c707ec7bdafd3412b664d90d1">getCompetence</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structCapacite.html">Capacite</a> *&#160;</td>
          <td class="paramname"><em>capacite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : capacite est initialisé <br/>
 Postconditions : retourne la ième compétence de capacité </p>

</div>
</div>
<a class="anchor" id="a498aeecb2bfb5e49624f6fd67842ebdf"></a><!-- doxytag: member="capacite.c::mainCapacite" ref="a498aeecb2bfb5e49624f6fd67842ebdf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="capacite_8h.html#a498aeecb2bfb5e49624f6fd67842ebdf">mainCapacite</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : teste les fonctions du module <a class="el" href="structCompetence.html">Competence</a>. </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
